/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石仲夏
 * Date: 2025-07-02
 * Time: 8:04
 */
public class Text {
    public static void main(String[] args) {
        int a=10;
        byte b=10;//correct
        byte c=a;//error
    }
    public static void main6(String[] args) {
        String str1="123";
        int ret=Integer.valueOf(str1);
        System.out.println(ret);
    }
    public static void main5(String[] args) {
        int num=10;
        //ideal 1
        String str=num+"";
        //ideal 2
        String str1=String.valueOf(num);
        System.out.println(str);
        System.out.println(str1);

    }
    public static void main4(String[] args) {
        String str="hello";
        String str2="world";
        System.out.println(str+str2);
    }
    public static void main3(String[] args) {
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);
        System.out.println(Byte.MAX_VALUE);
        System.out.println(Byte.MIN_VALUE);
        System.out.println(Short.MAX_VALUE);
        System.out.println(Short.MIN_VALUE);
        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);
    }
    public static void main2(String[] args) {
        final int a=10;
    }
    public static void main1(String[] args) {
        System.out.println("a");
        System.out.println(1000);
        System.out.println("ahj");
        System.out.println(15.5);
    }
}
